#ifndef EDITORCORE_PROPERTYCHANGEACTION_H
#define EDITORCORE_PROPERTYCHANGEACTION_H

#include "EditorCore/Actions/Action.h"
#include "EditorCore/IEntity.h"
#include "EditorCore/Visitors/HierarchyDeleter.h"

namespace editor_core {

	class DeleteAction : public Action
	{
	public:
		DeleteAction( IEntity* entity );
		virtual ~DeleteAction();

		virtual inline ActionType GetType() const { return ActionType::Undoable; }

	protected:
		virtual bool Commit();
		virtual void Recommit();
		virtual void Rollback();

	private:
		IEntity* m_entity;
		HierarchyDeleter* m_deleter;
	};
}

#endif
